package com.zhuang.designpattern.visitor.visitor;

import com.zhuang.designpattern.visitor.user.impl.Student;
import com.zhuang.designpattern.visitor.user.impl.Teacher;

/**
 * description: Visitor
 * date: 2022/9/22 17:15
 * author: Zhuang
 * version: 1.0
 */
public interface Visitor {

    // 访问学生信息
    void visit(Student student);

    // 访问老师信息
    void visit(Teacher teacher);

}
